package com.hyts.common.base;

import com.hyts.codegen.common.model.JdbcGenModel;
import com.hyts.dbmeta.model.TableMetadata;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import lombok.Setter;

import java.util.List;

/**
 * project-name:coffice-toolbox
 * package-name:com.hyts.codegen.process.conn
 * author:Libo/Alex
 * create-date:2019-06-18 13:53
 * email:liboware@gmail.com
 * description:此类主要用于:
 */
@RequiredArgsConstructor
public abstract class ProcessConnection<T> {

    /**
     * 加载生成器配置服务类
     */
    @Getter
    private final LoadGenerator<T,T> loadGenerator;

    @Setter
    @Getter
    private JdbcGenModel jdbcGenModel;

    /**
     * 连接对象
     * @return
     */
    public abstract List<TableMetadata> getTable(JdbcGenModel param);

}
